/* 武器加载动效基础样式 */
@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.loading-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.loading-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(240,240,240,0) 70%);
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

/* 武器特定动效 */
/* 锤子动效 */
.hammer-loading .weapon-icon {
    transform-origin: bottom;
    animation: hammerSwing 1.5s infinite ease-in-out;
}

@keyframes hammerSwing {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(20deg); }
}

/* 弓箭动效 */
.bow-loading .weapon-icon {
    animation: bowStretch 2s infinite;
}

@keyframes bowStretch {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.8); }
}

.bow-loading .arrow {
    position: absolute;
    width: 50px;
    height: 2px;
    background: #555;
    animation: arrowShoot 2s infinite;
}

@keyframes arrowShoot {
    0% { transform: translateX(0); opacity: 1; }
    30% { transform: translateX(0); opacity: 1; }
    90% { transform: translateX(100px); opacity: 0; }
    91% { transform: translateX(-10px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* 矛动效 */
.spear-loading .weapon-icon {
    animation: spearThrust 1.5s infinite ease-in-out;
}

@keyframes spearThrust {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 梯子动效 */
.ladder-loading .step {
    height: 4px;
    background: #555;
    margin: 15px 0;
    opacity: 0;
    animation: ladderAppear 3s infinite;
}

.ladder-loading .step:nth-child(1) { animation-delay: 0s; }
.ladder-loading .step:nth-child(2) { animation-delay: 0.2s; }
.ladder-loading .step:nth-child(3) { animation-delay: 0.4s; }
.ladder-loading .step:nth-child(4) { animation-delay: 0.6s; }
.ladder-loading .step:nth-child(5) { animation-delay: 0.8s; }

@keyframes ladderAppear {
    0% { width: 0; opacity: 0; }
    20% { width: 80%; opacity: 1; }
    80% { width: 80%; opacity: 1; }
    100% { width: 0; opacity: 0; }
}

/* 锥子动效 */
.awl-loading .weapon-icon {
    animation: awlDrill 1.5s infinite linear;
}

@keyframes awlDrill {
    0% { transform: rotate(0) translateY(0); }
    25% { transform: rotate(90deg) translateY(-5px); }
    50% { transform: rotate(180deg) translateY(-10px); }
    75% { transform: rotate(270deg) translateY(-5px); }
    100% { transform: rotate(360deg) translateY(0); }
}

/* 刀刃动效 */
.blade-loading .slash {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #555, transparent);
    animation: bladeSlash 2s infinite ease-out;
}

.blade-loading .slash:nth-child(1) { animation-delay: 0s; width: 60%; }
.blade-loading .slash:nth-child(2) { animation-delay: 0.5s; width: 70%; }
.blade-loading .slash:nth-child(3) { animation-delay: 1s; width: 80%; }

@keyframes bladeSlash {
    0% { transform: translateX(-100%) rotate(-30deg); opacity: 0; }
    30% { opacity: 1; }
    60% { transform: translateX(100%) rotate(-30deg); opacity: 0; }
    100% { transform: translateX(-100%) rotate(-30deg); opacity: 0; }
}

/* 镜子动效 */
.mirror-loading .reflection {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        transparent 0%, rgba(255,255,255,0) 35%, 
        rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 65%, 
        transparent 100%);
    animation: mirrorReflect 2s infinite;
}

@keyframes mirrorReflect {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

/* 加载文字样式 */
.loading-text {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: #555;
    letter-spacing: 1px;
    animation: fadeInOut 2s infinite;
}
